/ BBS in a Box 15
/ BBS in a box XV-2.iso / Files II / Prog / B-C / CPreferences 1.0.sit / About CPreferences ![]() | next > |
MacBinary | 1994-01-20 | 1.5 KB | [TEXT/MMCC] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Thu Jan 20 11:47:47 1994, modified Thu Jan 20 11:47:47 1994, creator 'MMCC', type ASCII, 932 bytes "About CPreferences" , at 0x424 382 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [MMCC] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 12 41 62 6f 75 74 20 | 43 50 72 65 66 65 72 65 |..About |CPrefere|
|00000010| 6e 63 65 73 00 00 00 00 | 00 00 00 00 00 00 00 00 |nces....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 01 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 03 a4 00 | 00 01 7e a9 64 66 33 a9 |........|..~.df3.|
|00000060| 64 66 33 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |df3.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d8 2c 00 00 |........|.....,..|
|00000080| 43 50 72 65 66 65 72 65 | 6e 63 65 73 20 43 6c 61 |CPrefere|nces Cla|
|00000090| 73 73 20 31 2e 30 0d 0d | 0d 54 68 69 73 20 63 6c |ss 1.0..|.This cl|
|000000a0| 61 73 73 20 77 61 73 20 | 63 72 65 61 74 65 64 20 |ass was |created |
|000000b0| 74 6f 20 73 69 6d 70 6c | 69 66 79 20 74 68 65 20 |to simpl|ify the |
|000000c0| 63 72 65 61 74 69 6f 6e | 20 6f 66 20 70 72 65 66 |creation| of pref|
|000000d0| 65 72 65 6e 63 65 0d 66 | 69 6c 65 73 20 66 6f 72 |erence.f|iles for|
|000000e0| 20 61 6e 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e | an appl|ication.|
|000000f0| 0d 0d 54 68 65 20 6f 62 | 6a 65 63 74 20 69 73 20 |..The ob|ject is |
|00000100| 76 65 72 79 20 67 65 6e | 65 72 61 6c 20 61 6e 64 |very gen|eral and|
|00000110| 20 73 69 6d 70 6c 65 20 | 74 6f 20 75 73 65 2e 0d | simple |to use..|
|00000120| 0d 57 68 65 6e 20 4d 57 | 20 43 2b 2b 20 73 75 70 |.When MW| C++ sup|
|00000130| 70 6f 72 74 73 20 74 65 | 6d 70 6c 61 74 65 73 2c |ports te|mplates,|
|00000140| 20 49 20 77 69 6c 6c 20 | 72 65 77 72 69 74 65 20 | I will |rewrite |
|00000150| 74 68 65 20 63 6c 61 73 | 73 20 74 6f 20 73 75 70 |the clas|s to sup|
|00000160| 70 6f 72 74 0d 74 68 65 | 6d 2e 20 54 68 69 73 20 |port.the|m. This |
|00000170| 77 69 6c 6c 20 61 6c 6c | 6f 77 20 61 6e 20 65 61 |will all|ow an ea|
|00000180| 73 79 20 77 61 79 20 74 | 6f 20 63 72 65 61 74 65 |sy way t|o create|
|00000190| 20 6d 75 6c 74 69 70 6c | 65 20 70 72 65 66 65 72 | multipl|e prefer|
|000001a0| 65 6e 63 65 20 66 69 6c | 65 73 0d 66 6f 72 20 61 |ence fil|es.for a|
|000001b0| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 74 68 61 74 |pplicati|ons that|
|000001c0| 20 6e 65 65 64 20 74 68 | 65 6d 2e 0d 0d 55 73 65 | need th|em...Use|
|000001d0| 20 6f 66 20 43 50 72 65 | 66 65 72 65 6e 63 65 73 | of CPre|ferences|
|000001e0| 3a 0d 0d 09 31 2e 20 41 | 64 64 20 22 43 50 72 65 |:...1. A|dd "CPre|
|000001f0| 66 65 72 65 6e 63 65 73 | 2a 20 6d 50 72 65 66 73 |ferences|* mPrefs|
|00000200| 22 20 74 6f 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |" to you|r applic|
|00000210| 61 74 69 6f 6e 20 63 6c | 61 73 73 2e 0d 0d 09 32 |ation cl|ass....2|
|00000220| 2e 20 41 64 64 20 74 68 | 69 73 20 6c 69 6e 65 20 |. Add th|is line |
|00000230| 74 6f 20 79 6f 75 72 20 | 63 6f 6e 73 74 72 75 63 |to your |construc|
|00000240| 74 6f 72 2e 0d 09 09 6d | 50 72 65 66 73 20 3d 20 |tor....m|Prefs = |
|00000250| 6e 65 77 20 43 50 72 65 | 66 65 72 65 6e 63 65 73 |new CPre|ferences|
|00000260| 28 27 43 50 49 36 27 2c | 20 22 5c 70 54 65 78 74 |('CPI6',| "\pText|
|00000270| 53 74 72 65 61 6d 65 72 | 20 33 2e 30 20 50 72 65 |Streamer| 3.0 Pre|
|00000280| 66 73 22 29 3b 0d 09 09 | 2f 2f 20 27 43 50 49 36 |fs");...|// 'CPI6|
|00000290| 27 20 69 73 20 74 68 65 | 20 63 72 65 61 74 6f 72 |' is the| creator|
|000002a0| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 2e 0d 09 09 | of the |file....|
|000002b0| 2f 2f 20 22 5c 70 54 65 | 78 74 53 74 72 65 61 6d |// "\pTe|xtStream|
|000002c0| 65 72 20 33 2e 30 20 50 | 72 65 66 73 22 20 69 73 |er 3.0 P|refs" is|
|000002d0| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 | the nam|e of the|
|000002e0| 20 66 69 6c 65 2e 0d 0d | 09 33 2e 20 41 64 64 20 | file...|.3. Add |
|000002f0| 74 68 69 73 20 6c 69 6e | 65 20 74 6f 20 79 6f 75 |this lin|e to you|
|00000300| 72 20 64 65 73 74 72 75 | 63 74 6f 72 0d 09 09 09 |r destru|ctor....|
|00000310| 64 65 6c 65 74 65 20 6d | 50 72 65 66 73 3b 0d 0d |delete m|Prefs;..|
|00000320| 09 34 2e 20 49 6e 20 6f | 72 64 65 72 20 74 6f 20 |.4. In o|rder to |
|00000330| 61 63 63 65 73 73 20 74 | 68 65 20 64 61 74 61 20 |access t|he data |
|00000340| 69 6e 20 79 6f 75 72 20 | 64 61 74 61 20 73 74 72 |in your |data str|
|00000350| 75 63 74 75 72 65 2c 20 | 79 6f 75 20 77 69 6c 6c |ucture, |you will|
|00000360| 0d 09 09 6e 65 65 64 20 | 74 6f 20 61 64 64 20 61 |...need |to add a|
|00000370| 63 63 65 73 73 6f 72 20 | 66 75 6e 63 74 69 6f 6e |ccessor |function|
|00000380| 73 20 74 6f 20 43 50 72 | 65 66 65 72 65 6e 63 65 |s to CPr|eference|
|00000390| 73 2e 0d 09 09 0d 0d 49 | 6e 20 74 68 65 20 6e 65 |s......I|n the ne|
|000003a0| 78 74 20 76 65 72 73 69 | 6f 6e 20 49 20 77 69 6c |xt versi|on I wil|
|000003b0| 6c 20 61 6c 73 6f 20 69 | 6e 63 6c 75 64 65 20 6d |l also i|nclude m|
|000003c0| 65 74 68 6f 64 73 20 66 | 6f 72 20 75 73 69 6e 67 |ethods f|or using|
|000003d0| 20 61 20 50 72 65 66 65 | 72 65 6e 63 65 73 0d 64 | a Prefe|rences.d|
|000003e0| 69 61 6c 6f 67 2e 0d 0d | 52 69 63 68 61 72 64 20 |ialog...|Richard |
|000003f0| 41 2e 20 42 72 61 79 0d | 50 72 65 73 69 64 65 6e |A. Bray.|Presiden|
|00000400| 74 0d 43 6f 6d 70 75 2d | 50 68 6f 62 69 63 2c 20 |t.Compu-|Phobic, |
|00000410| 49 6e 63 2e 0d 41 4f 4c | 3a 20 43 6f 6d 70 75 46 |Inc..AOL|: CompuF|
|00000420| 6f 62 69 63 00 00 00 00 | 00 00 00 00 00 00 00 00 |obic....|........|
|00000430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000490| cf d3 83 29 39 84 bb a0 | 66 4f 33 41 9a d3 9a 3d |...)9...|fO3A...=|
|000004a0| 35 a7 d1 79 36 5c 5a 3d | b2 e0 4a 0e 66 cf f3 7f |5..y6\Z=|..J.f...|
|000004b0| 12 41 62 6f 75 74 20 43 | 50 72 65 66 65 72 65 6e |.About C|Preferen|
|000004c0| 63 65 73 72 02 00 00 00 | 54 45 58 54 4d 4d 43 43 |cesr....|TEXTMMCC|
|000004d0| 00 00 54 45 58 54 4d 4d | 43 43 01 00 00 9c 00 80 |..TEXTMM|CC......|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 a9 64 1c 48 00 00 | 03 a4 00 00 01 7e bc ff |...d.H..|.....~..|
|00000500| c5 49 2c 72 ad 9a 60 5c | 95 9e 69 6e 95 54 59 86 |.I,r..`\|..in.TY.|
|00000510| 6f 94 45 24 5e 79 a0 92 | 7a a9 b0 61 78 a7 3c 67 |o.E$^y..|z..ax.<g|
|00000520| 5a 9f d3 61 87 7a 12 3e | 51 29 55 66 7a 63 93 a0 |Z..a.z.>|Q)Ufzc..|
|00000530| 65 b2 9d 6b 79 9b 83 c4 | bd 94 95 b9 e3 b1 95 63 |e..ky...|.......c|
|00000540| 95 b6 68 81 ac b9 d2 a7 | 95 73 71 99 8e b0 a4 45 |..h.....|.sq....E|
|00000550| 6f 93 64 68 43 1e 31 1b | 83 ab c3 d8 ac b7 8e 10 |o.dhC.1.|........|
|00000560| 6b 92 bd 41 1a 90 bd dc | 5b 0a 39 f6 ca 5d 3d 36 |k..A....|[.9..]=6|
|00000570| 41 63 d2 91 be 79 17 8d | 53 2f 59 56 f1 f8 b5 81 |Ac...y..|S/YV....|
|00000580| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 03 | 00 04 00 65 00 12 01 ef |........|...e....|
|000005b0| 02 08 00 65 00 12 01 ef | 02 08 a9 64 1f e6 00 00 |...e....|...d....|
|000005c0| 03 a4 00 00 03 a4 00 00 | 00 19 01 00 00 00 01 00 |........|........|
|000005d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 7f 77 d8 |...L...L|...2..w.|
|000005e0| 1b 2e 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000005f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+